from dataaccess import CommitteeMemberData
from common import utility


class CommitteeMemberBiz(object):
    def __init__(self):
        pass

    def __ValidateInsert(self, committeeMember):
        valid = True
        if not valid:
            raise utility.BusinessException(message="",fieldName = "")
        
    def __ValidateUpdate(self, committeeMember):
        valid = True
        if not valid:
            raise utility.BusinessException(message="",fieldName = "")
        
    def __ValidateDelete(self, committeeID, memberID):
        valid = True
        if not valid:
            raise utility.BusinessException(message="",fieldName = "")
        
    def InsertCommitteeMember(self, committeeMember):
        self.__ValidateInsert(committeeMember)
        committeeMemberData = CommitteeMemberData.CommitteeMemberData()
        committeeMemberData.InsertCommitteeMember(committeeMember)

    def UpdateCommitteeMember(self, committeeMember):
        self.__ValidateUpdate(committeeMember)
        committeeMemberData = CommitteeMemberData.CommitteeMemberData()
        committeeMemberData.UpdateCommitteeMember(committeeMember)

    def DeleteCommitteeMember(self, committeeID, memberID):
        self.__ValidateDelete(committeeID, memberID)
        committeeMemberData = CommitteeMemberData.CommitteeMemberData()
        committeeMemberData.DeleteCommitteeMember(committeeID, memberID)
